﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.PM
{
    public partial class HousingKey : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) 
            {
                Operator.Value = this.info.m_sUserName;//操作人员
                string id = _Request.GetString("id","");
                txtkeyno.Attributes.Add("readonly", "readonly");
                txtkeyno.Value = ZLDC.Topo.BLL.Estate.HousingKeyBLL.SelectKeyNoByHId(id);//钥匙编号
                if (txtkeyno.Value == "") 
                {
                    txtkeyno.Attributes.Remove("readonly");
                }
            }
        }
    }
}
